package org.zhu.mybatis_test.bean;

import java.util.List;

/**
 * @author yingzhi zhu
 * date 2018/1/22.
 */
public class Pageable {
    private int total;
    private int page = 0;
    private int size = 10;
    private int totalPages;
    private List<?> content;

    public List<?> getContent() {
        return content;
    }

    public void setContent(List<?> content) {
        this.content = content;
    }

    public Pageable setContentAndReturn(List<?> content) {
        this.content = content;
        return this;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }
}
